/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.factory;

/**
 *
 * @author minga
 */
public class fact {
    public static void main(String args[])
    {
      AnimalFactory animalfactory = new AnimalFactory();
      Animal a = animalfactory.getAnimal("feline");
      System.out.println("a sound"+ a.makesound());
      Animal b = animalfactory.getAnimal("carine");
      System.out.println("b sound"+ b.makesound());
    }
}
